package d.k;

import d.h.a.a;
import d.h.b.c;

class m extends l {
    public static final boolean b(String str, int i, String str2, int i2, int i3, boolean z) {
        c.c(str, "$this$regionMatches");
        c.c(str2, "other");
        return !z ? str.regionMatches(i, str2, i2, i3) : str.regionMatches(z, i, str2, i2, i3);
    }

    public static final String c(String str, String str2, String str3, boolean z) {
        c.c(str, "$this$replace");
        c.c(str2, "oldValue");
        c.c(str3, "newValue");
        return g.c(n.r(str, new String[]{str2}, z, 0, 4, (Object) null), str3, (CharSequence) null, (CharSequence) null, 0, (CharSequence) null, (a) null, 62, (Object) null);
    }

    public static /* synthetic */ String d(String str, String str2, String str3, boolean z, int i, Object obj) {
        if ((i & 4) != 0) {
            z = false;
        }
        return c(str, str2, str3, z);
    }
}
